/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.Collection;

/**
 *
 * @author sio
 */
public class Spe implements Comparable <Spe>{
    
    //proprietes
    
    private String nom;
    private Collection <Med> lesMeds; 
    
    //methodes
    
    public Spe(String nom, Collection <Med> lesMeds){
        this.nom=nom;
        this.lesMeds = lesMeds;
    }
    
    public String getNom(){
        return nom;
    }
    
    public int compareTo(Spe d){
        
            return nom.compareTo(d.nom);
    }
    
    public Collection <Med> getLesMeds(){
        return lesMeds;
    }

    
}
